package cn.gjxblog.aop.utils.demo;

import cn.gjxblog.aop.utils.environment.AopTest;
import cn.gjxblog.aop.utils.environment.HelloService;
import cn.gjxblog.aop.utils.environment.HelloServiceImpl;
import org.springframework.aop.framework.AdvisedSupport;
import org.springframework.aop.framework.AopContext;
import org.springframework.aop.framework.AopProxyUtils;

/**
 *
 */
public class AopProxyUtilsDemo {

    public static void main(String[] args) {
        HelloService helloService = AopTest.getProxy(new HelloServiceImpl());

        helloService.hello();
//        System.out.println(AopProxyUtils.getSingletonTarget(helloService));
//
//        // 获取一个代理对象的最终对象类型
//        System.out.println(AopProxyUtils.ultimateTargetClass(helloService));
//
//        System.out.println(AopProxyUtils.proxiedUserInterfaces( helloService));


    }
}
